﻿namespace MyWebLog.Models.Admin
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.ComponentModel.DataAnnotations;
    using MyWebLog.Properties;

    /// <summary>
    /// The admin login form
    /// </summary>
    public class LoginForm : MyWebLogModel
    {
        /// <summary>
        /// The user's e-mail address
        /// </summary>
        [Display(ResourceType = typeof(Resources), Name = "EmailAddress")]
        [Required(ErrorMessageResourceName = "EmailRequired", ErrorMessageResourceType = typeof(Resources))]
        public string EmailAddress { get; set; }

        /// <summary>
        /// The password
        /// </summary>
        [Display(ResourceType = typeof(Resources), Name = "Password")]
        [Required(ErrorMessageResourceName = "PasswordRequired", ErrorMessageResourceType = typeof(Resources))]
        public string Password { get; set; }

        /// <summary>
        /// The URL to display after the user logs in
        /// </summary>
        public string RedirectURL { get; set; }
    }
}